import request from "@/utils/request";

// 查询产品资料列表
export function listBizProductFiles(query) {
  return request({
    url: "/biz/bizProductFiles/list",
    method: "get",
    params: query,
  });
}

// 查询产品资料详细
export function getBizProductFiles(id) {
  return request({
    url: "/biz/bizProductFiles/" + id,
    method: "get",
  });
}

// 新增产品资料
export function addBizProductFiles(data) {
  return request({
    url: "/biz/bizProductFiles",
    method: "post",
    data: data,
  });
}

// 修改产品资料
export function updateBizProductFiles(data) {
  return request({
    url: "/biz/bizProductFiles",
    method: "put",
    data: data,
  });
}

// 删除产品资料
export function delBizProductFiles(id) {
  return request({
    url: "/biz/bizProductFiles/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizProductFiles/findMaxSort",
    method: "get",
  });
}
// 导出产品资料
export function exportBizProductFiles(query) {
  return request({
    url: "/biz/bizProductFiles/export",
    method: "get",
    params: query,
  });
}

// 根据产品id查询产品所需资料
export function findListByProductId(query) {
  return request({
    url: "/biz/bizProductFiles/findListByProductId",
    method: "get",
    params: query,
  });
}
